function detail_rule(rule) {
var d = [];
if (typeof(html) == "undefined") {
html = getResCode();
}
var arts_selector = rule[0];
var conts_selector = rule[1];
var cont_selector = rule[2];
var desc_selector = rule[3];
var pic_selector = rule[4];
var other_selector = rule[5];
var info_selector = rule[6];
var text_selector = rule[7];
var url_selector = rule[8];
if(getVar('fftq')!=''){
d.push({
   url:getVar('fftq'),
   col_type: 'x5_webview_single',
   desc:'480&& float'
});
putVar('fftq','');
}
if (typeof(title) == "undefined") {
title = parseDomForHtml(html,"head&&title&&Text");
//setError(title);
title = title.replace(/.*【/,"").replace(/.*《/,"").replace(/(?:-|_|HD|》|在线|未删|电视剧|电影|综艺|动漫|伦理|下载|DVD|高清|国语|普通话|粤语|详情|全集|免费|剧情|】).*/i,"").replace("正在播放","").replace(/第.*/,"").replace(/-/g,"");
}
d.push({
    title: '聚搜君Lite',
    pic_url: 'https://z3.ax1x.com/2021/10/18/5Up3k9.png',
    url: 'hiker://search?s=' + title + '&rule=聚搜君Lite',
    col_type: 'icon_small_4',
});
d.push({
    title: '豆瓣',
    pic_url: 'https://i.52112.com/icon/jpg/256/20201124/100287/4322096.jpg',
    url: 'hiker://search?s=' + title + '&rule=豆娃R',
    col_type: 'icon_small_4',
});
d.push({
    title: '五号站',
    pic_url: 'https://i.52112.com/icon/jpg/256/20200831/90128/3898775.jpg',
    url: 'http://so.baike567.com/s/o?s=' + title + `@rule=js:var d=[];var html=getResCode();d.push({title:parseDom(html,'.s-box&&Html'),col_type: 'rich_text'});setResult(d);`,
    col_type: 'icon_small_4',
});
d.push({
    title: '插件设置',
    pic_url: 'https://lanmeiguojiang.com/tubiao/movie/40.svg',
    url: 'hiker://page/Route?rule=MyFieldᴰⁿ&type=设置#noHistory#',
    col_type: 'icon_small_4',
});
d.push({col_type: 'line_blank'});
putVar("other_selector",other_selector);
putVar("info_selector",info_selector);
var urls=MY_URL.match(/https?:\/\/.*?\//);
var domain =urls[0].substring(0,urls[0].length-1);
var arts = parseDomForArray(html,arts_selector);
//setError(arts);
var tabs = [];
for (let art of arts) {
    tabs.push(parseDomForHtml(art, 'Text'))
}
var conts = parseDomForArray(html,conts_selector);
var lists =[];
for (let cont of conts) {
    lists.push(parseDomForArray(cont, cont_selector));
}
try {
desc=parseDomForHtml(html, desc_selector)
} catch(e) {
desc=e;
}
try {
pic = parseDom(html, pic_selector);
} catch(e){
pic="http://api.btstu.cn/sjbz/?lx=m_dongman?glideCache=skip&t="+Math.random();
}
d.push({
    title: '共' + conts.length + '条线路\n\n点击查看详情',
    desc: desc,
    pic_url: pic + '@Referer='+domain,
    url: MY_URL + `@rule=js:let d=[];other_selector=getVar("other_selector");info_selector=getVar("info_selector");let html=getResCode();let otherInfo=parseDomForArray(html,other_selector);for(let i=0;i<otherInfo.length;i++){d.push({title:parseDomForHtml(otherInfo[i],info_selector),col_type:'long_text'})};setResult(d);`,
    col_type: 'movie_1_vertical_pic_blur'
});
//setError(parseDom(html, pic_selector));

function setTabs(tabs, vari) {
        d.push({
            title: '‘‘线路’’',
            url: `@lazyRule=.js:let conf = getVar('折叠');if(conf=='关'){putVar({key:'折叠', value:'开'});}else{putVar({key:'折叠', value:'关'})};refreshPage(false);'toast://切换成功'`,
            col_type: 'text_center_1'
        })
if (getVar('折叠') == '开'||getVar('折叠') == '') {
        var title = '';
        for (var i = 0; i < tabs.length; i++) {
            var url = "@lazyRule=.js:putVar('" + vari + "', '" + i + "');refreshPage(false);'toast://切换成功！'";
            d.push({
                title: (getVar(vari, '0') == i ? '√' : '') + tabs[i],
                url: url,
                col_type: 'text_2'
            })
        }
        d.push({
            col_type: 'line_blank'
        })
        d.push({col_type:"rich_text",title:`<small>当前模式为：<a href="hiker://empty@lazyRule=.js:putVar('bfq',getVar('bfq')=='1'?'0':'1');putVar('fftq','');refreshPage();'toast://已切换模式';">`+(getVar('bfq')=='1'?"默认播放器":"X5播放器")+"</a></small>"});
d.push({col_type:'blank_block'});
    }
}
    function setLists(lists, index) {
        d.push({
            title: '‘‘选集’’',
            url: `@lazyRule=.js:let conf = getVar('shsort');if(conf==' - 逆序'){putVar({key:'shsort', value:' - 正序'});}else{putVar({key:'shsort', value:' - 逆序'})};refreshPage(false);'toast://切换排序成功'`,
            col_type: 'text_center_1'
        })
        var list = lists[index] == null ?[]:lists[index];

if (getVar('shsort') == ' - 逆序') {
            list=list.reverse();
        } 
            for (let item of list) {
                d.push({
                title: parseDomForHtml(item, text_selector),
                url: lazyRule(parseDom(item,url_selector)),
                col_type: list.length > 3 ? 'flex_button' : 'text_2'
                });
            }
        
    }
setTabs(tabs, MY_URL);
setLists(lists, getVar(MY_URL, '0'));

d.push({title: '<br>', col_type: 'rich_text'});
return d;
}